package com.xzsoft.gdwz.services.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.xzsoft.gdwz.dao.ValueDao;
import com.xzsoft.gdwz.model.ValueBean;
import com.xzsoft.gdwz.services.ValueService;

import net.sf.json.JSONObject;

@Service("valueService")
public class ValueServiceImpl implements ValueService {
	
	@Autowired
	private ValueDao valueDao;
	
	@Cacheable(value="default",key="#setCode")
	@Override
	public List<ValueBean> getValuesBySetCode(String setCode) {
		return valueDao.selectValuesBySetCode(setCode);
	}

}
